package com.example.rbac.mapper;

import com.example.rbac.entity.Page;
import com.example.rbac.entity.Role;
import com.example.rbac.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/9/25.
 */
@Mapper
public interface UserMapper extends CurdMapper<User>{
    User findUserByUserNameAndPwd(@Param("user") Map<String, String> user);

    Integer updateById(User user);

    List<String> findRoleByUserId(String userId);

    List<Role> findRoleById(List<String> list);

    Integer updateStateById(User user);

}
